package farcast;

import java.util.Stack;
import javax.microedition.lcdui.Displayable;

/**
 *
 * @author Jeroen
 */
public class DisplayableManager {
    private Stack displayStack;
    
    public DisplayableManager(){
        displayStack = new Stack();    
    }
    
    public void pushDisplayable(Displayable d){
        displayStack.push(d);
    }
    
    public void popDisplayable(){
        displayStack.pop();
    }
    
    public Displayable getCurrent() {
        return (Displayable) displayStack.peek();        
    }

}